package ooday05;

public class StaticDemo {
    public static void main(String[] args) {
        /*
        StaticVar o1=new StaticVar();
        o1.show();
        o1.show();
        StaticVar o2=new StaticVar();
        o2.show();
        o2.show();
        StaticVar o3=new StaticVar();
        o3.show();
        System.out.println(StaticVar.b);//常常通过类名访问
         */
        /*
        StaticVar o4=new StaticVar();
        StaticVar o5=new StaticVar();
        StaticVar o6=new StaticVar();
         */


        StaticMethod.test();
        //StaticMethod.show();编译错误
        StaticMethod A=new StaticMethod();
        A.test();
        A.show();
        StaticMethod B=new StaticMethod();
        B.test();

        int a= StaticMethod.pluse(5,6);
        System.out.println(a);
    }
}
